<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <p>1234</p>
    <style>
    p{
        width: 160px;
        white-space: nowrap;
        background: silver;
        text-overflow: ellipsis;
        overflow: hidden;
    }
    p{
        -o-text-overflow: ellipsis;
        text-overflow: ellipsis;
    }
    p{
        font-size: 50px;
        -webkit-text-stroke: 1px red;
    }
    p{
        font-size: 50px;
        -webkit-text-stroke: 1px red;
        -webkit-text-stroke-color: orange;
        -webkit-text-stroke-width: 2px;
    }
    p{
        font-size: 60px;
        font-family: 黑体;
        background: 
          -webkit-linear-gradient(top,#eee,#aaa 50%,#333 51%,#000);
          -webkit-background-clip: text;
          -webkit-text-fill-color: transparent;
    }
    </style>
</body>
</html>